import React, { Component } from 'react'
import styles from "./Details.module.scss"
export default class Details extends Component {
    render() {
        let item = this.props.item
        return (
            <div className={styles.content} onClick={this.props.close}>
                <div className={styles.mains}>
                    <h2>商品详细信息</h2>
                    <div className={styles.box}>
                        <p>序号：<span>{item.goodsID}</span></p>
                        <p>品牌:<span>{item.brand}</span></p>
                        <p>名称:<span>{item.goodsName}</span></p>
                        <p>型号:<span>{item.model}</span></p>
                        <p>分类:<span>{item.category}</span></p>
                        <p>入库时间:<span>{item.intoDatetime}</span></p>
                        <p>数量:<span>{item.quantity}</span></p>
                        <p>单价:<span>{item.price}</span></p>
                    </div>
                </div>
            </div>
        )
    }
}
